#include<iostream>

using std::cout;
using std::endl;
using std::cin;

int && get()
{
    int x=10;
    return std::move(x);
}
int &&get(int& a)
{
    return std::move(a);
}

int get(double&& a)
{
    a=10;
    cout<<"get rvalue"<<endl;
    return a;
}
void test1()
{
    /* cout<<get()<<endl; */
    int a=10;
    cout<<get(a)<<endl;
    cout<<get(8.3)<<endl;
    int&& c=get(a);
    cout<<"c: "<<c<<endl;
    int && b=std::move(a);
    b=100;
    int && d=6;
    int && p=std::move(d);
    cout<<"d,p"<<d<<","<<p<<endl;
    d=9;
    cout<<"d,p"<<d<<","<<p<<endl;
    cout<<a<<endl;
}
int main(void)
{
    test1();
}
